package com.zzty.wja.controller;


import com.zzty.wja.entity.Question;
import com.zzty.wja.service.QuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/question")
public class QuestionController {
    @Autowired
    private QuestionService questionService;

    @RequestMapping(value = "/addContent",method = RequestMethod.POST)
    public Question addContent(Question question){
        Question question1=questionService.addContent(question);
        return question1;
    }
}
